package com.tan.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tan.pojo.Menu;
import com.tan.pojo.Role;
import com.tan.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tan.pojo.vo.UserInnerDepartmentVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author tanRuYi
 * @since 2021-08-25
 */
public interface UserMapper extends BaseMapper<User> {

    Page<UserInnerDepartmentVO> getUserByUserByPage(@Param("user") UserInnerDepartmentVO user, @Param("page") Page page);

    User findUserByName(String username);

    List<Role> findRolesById(Long id);
}
